package com.ruoyi.fantasy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fantasy.mapper.FantasySendEmailLogMapper;
import com.huanzhidadi.fantasy.bean.domain.FantasySendEmailLog;
import com.ruoyi.fantasy.service.IFantasySendEmailLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 邮件发送记录 服务层实现
 * 
 * @author wanghui
 * @date 2019-07-11
 */
@Service
public class FantasySendEmailLogServiceImpl implements IFantasySendEmailLogService 
{
	@Autowired
	private FantasySendEmailLogMapper fantasySendEmailLogMapper;

	/**
     * 查询邮件发送记录信息
     * 
     * @param id 邮件发送记录ID
     * @return 邮件发送记录信息
     */
    @Override
	public FantasySendEmailLog selectFantasySendEmailLogById(Long id)
	{
	    return fantasySendEmailLogMapper.selectFantasySendEmailLogById(id);
	}
	
	/**
     * 查询邮件发送记录列表
     * 
     * @param fantasySendEmailLog 邮件发送记录信息
     * @return 邮件发送记录集合
     */
	@Override
	public List<FantasySendEmailLog> selectFantasySendEmailLogList(FantasySendEmailLog fantasySendEmailLog)
	{
	    return fantasySendEmailLogMapper.selectFantasySendEmailLogList(fantasySendEmailLog);
	}
	
    /**
     * 新增邮件发送记录
     * 
     * @param fantasySendEmailLog 邮件发送记录信息
     * @return 结果
     */
	@Override
	public int insertFantasySendEmailLog(FantasySendEmailLog fantasySendEmailLog)
	{
	    return fantasySendEmailLogMapper.insertFantasySendEmailLog(fantasySendEmailLog);
	}
	
	/**
     * 修改邮件发送记录
     * 
     * @param fantasySendEmailLog 邮件发送记录信息
     * @return 结果
     */
	@Override
	public int updateFantasySendEmailLog(FantasySendEmailLog fantasySendEmailLog)
	{
	    return fantasySendEmailLogMapper.updateFantasySendEmailLog(fantasySendEmailLog);
	}

	/**
     * 删除邮件发送记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFantasySendEmailLogByIds(String ids)
	{
		return fantasySendEmailLogMapper.deleteFantasySendEmailLogByIds(Convert.toStrArray(ids));
	}
	
}
